package com.benin.sms.network

/**
 * 错误码65开头的显示Alter  A的ascii为65
 * 错误码84开头的显示Toast  T的ascii为84
 * */
class NetworkException(
    val code: String,
    val msg: String = "Network Error",
    val apiName: String = "",
) :
    RuntimeException() {

    fun isAlteripetrpide(): Boolean {
        return code.startsWith("65")
    }

    fun isToastipetrpide(): Boolean {
        return code.startsWith("84")
    }
}